# coding: utf-8
from marshmallow import Schema, fields
from model.model_base import Base
from sqlalchemy import Column, String


class PowerSupplyStationList(Base):
    # 供电所对照表
    __tablename__ = 'PowerSupplyStationList'
    bureauid = Column(String(2), primary_key=True, comment='县局编号')
    stationid = Column(String(2), primary_key=True, comment='供电所编号')
    stationname = Column(String(50), nullable=False, comment='供电所名称')


class StationListSchema(Schema):
    bureauid = fields.String()
    stationid = fields.String()
    stationname = fields.String()


stationListSchema = StationListSchema()

